createBanner

fun createBanner(configurationID: String, wrapper: ViewGroup, lifecycleCallbacks: <Error class: unknown class>? = null): Int

Creates banner type ad inside of a wrapper. Banner is a fixed size static ad. First we cache the ad, load it and when it loads we display it in wrapper

Return

Int the id of the banner for the factory to manage it

Parameters

configurationID

id used to fetch the unit configuration

wrapper

the container of the banner if it dies banner will be invalidated and destroyed

lifecycleCallbacks

(optional) go to BannerEventListener to know when the callbacks are called